package com.min.main.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.min.common.entity.BaseEntity;

import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 字典表
 * 
 * @author fengt
 * @date 2021-07-30
 */
@Data
@TableName("min_dict")
public class DictEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;


    /**
    * 上级ID
    */
    private Long parentId;

    /**
    * 字典编码
    */
    private String code;

    /**
    * 字典名称
    */
    private String name;

    /**
    * 字典描述
    */
    private String description;

    @TableField(exist = false)
    private List<DictEntity> children;

}
